\section{Tools.FileHelper类参考}
\label{class_tools_1_1_file_helper}\index{Tools::FileHelper@{Tools::FileHelper}}


文件操作类 功能说明:文件操作类 作者:findpace.com 版本:1.0.0  


\subsection*{公有成员}
\begin{DoxyCompactItemize}
\item 
void {\bfseries Dispose} ()\label{class_tools_1_1_file_helper_a33de32b1bf839dff92260d310177a395}

\end{DoxyCompactItemize}
\subsection*{静态公有成员}
\begin{DoxyCompactItemize}
\item 
static string {\bf GetPostfixStr} (string filename)
\begin{DoxyCompactList}\small\item\em 取后缀名 \item\end{DoxyCompactList}\item 
static void {\bf WriteFile} (string Path, string Strings)
\begin{DoxyCompactList}\small\item\em 写文件 \item\end{DoxyCompactList}\item 
static string {\bf ReadFile} (string Path)
\begin{DoxyCompactList}\small\item\em 读文件 \item\end{DoxyCompactList}\item 
static void {\bf FileAdd} (string Path, string strings)
\begin{DoxyCompactList}\small\item\em 追加文件 \item\end{DoxyCompactList}\item 
static void {\bf FileCoppy} (string orignFile, string NewFile)
\begin{DoxyCompactList}\small\item\em 拷贝文件 \item\end{DoxyCompactList}\item 
static void {\bf FileDel} (string Path)
\begin{DoxyCompactList}\small\item\em 删除文件 \item\end{DoxyCompactList}\item 
static void {\bf FileMove} (string orignFile, string NewFile)
\begin{DoxyCompactList}\small\item\em 移动文件 \item\end{DoxyCompactList}\item 
static void {\bf FolderCreate} (string orignFolder, string NewFloder)
\begin{DoxyCompactList}\small\item\em 在当前目录下创建目录 \item\end{DoxyCompactList}\item 
static void {\bf DeleteFolder} (string dir)
\begin{DoxyCompactList}\small\item\em 递归删除文件夹目录及文件 \item\end{DoxyCompactList}\item 
static void {\bf CopyDir} (string srcPath, string aimPath)
\begin{DoxyCompactList}\small\item\em 指定文件夹下面的所有内容copy到目标文件夹下面 \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{保护成员}
\begin{DoxyCompactItemize}
\item 
virtual void {\bfseries Dispose} (bool isDisposing)\label{class_tools_1_1_file_helper_ae9dd7d96c045fc3ef0d9ba9b52519990}

\end{DoxyCompactItemize}


\subsection{详细描述}
文件操作类 功能说明:文件操作类 作者:findpace.com 版本:1.0.0 

\subsection{成员函数文档}
\index{Tools::FileHelper@{Tools::FileHelper}!CopyDir@{CopyDir}}
\index{CopyDir@{CopyDir}!Tools::FileHelper@{Tools::FileHelper}}
\subsubsection[{CopyDir}]{\setlength{\rightskip}{0pt plus 5cm}static void Tools.FileHelper.CopyDir (
\begin{DoxyParamCaption}
\item[{string}]{ srcPath, }
\item[{string}]{ aimPath}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_file_helper_a3f04cb3f299e9097212a86b8c34aa397}


指定文件夹下面的所有内容copy到目标文件夹下面 


\begin{DoxyParams}{参数}
{\em srcPath} & 原始路径\\
\hline
{\em aimPath} & 目标文件夹\\
\hline
\end{DoxyParams}
\index{Tools::FileHelper@{Tools::FileHelper}!DeleteFolder@{DeleteFolder}}
\index{DeleteFolder@{DeleteFolder}!Tools::FileHelper@{Tools::FileHelper}}
\subsubsection[{DeleteFolder}]{\setlength{\rightskip}{0pt plus 5cm}static void Tools.FileHelper.DeleteFolder (
\begin{DoxyParamCaption}
\item[{string}]{ dir}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_file_helper_a2c2a84f58c66bc873d371228748c9e54}


递归删除文件夹目录及文件 


\begin{DoxyParams}{参数}
{\em dir} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\index{Tools::FileHelper@{Tools::FileHelper}!FileAdd@{FileAdd}}
\index{FileAdd@{FileAdd}!Tools::FileHelper@{Tools::FileHelper}}
\subsubsection[{FileAdd}]{\setlength{\rightskip}{0pt plus 5cm}static void Tools.FileHelper.FileAdd (
\begin{DoxyParamCaption}
\item[{string}]{ Path, }
\item[{string}]{ strings}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_file_helper_a313ee9392469f3894086f77a67fa5525}


追加文件 


\begin{DoxyParams}{参数}
{\em Path} & 文件路径\\
\hline
{\em strings} & 内容\\
\hline
\end{DoxyParams}
\index{Tools::FileHelper@{Tools::FileHelper}!FileCoppy@{FileCoppy}}
\index{FileCoppy@{FileCoppy}!Tools::FileHelper@{Tools::FileHelper}}
\subsubsection[{FileCoppy}]{\setlength{\rightskip}{0pt plus 5cm}static void Tools.FileHelper.FileCoppy (
\begin{DoxyParamCaption}
\item[{string}]{ orignFile, }
\item[{string}]{ NewFile}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_file_helper_a4de8083bbe6a1f7f759d5b171ad3f0b0}


拷贝文件 


\begin{DoxyParams}{参数}
{\em OrignFile} & 原始文件\\
\hline
{\em NewFile} & 新文件路径\\
\hline
\end{DoxyParams}
\index{Tools::FileHelper@{Tools::FileHelper}!FileDel@{FileDel}}
\index{FileDel@{FileDel}!Tools::FileHelper@{Tools::FileHelper}}
\subsubsection[{FileDel}]{\setlength{\rightskip}{0pt plus 5cm}static void Tools.FileHelper.FileDel (
\begin{DoxyParamCaption}
\item[{string}]{ Path}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_file_helper_a7a6d8d5985d9cc29177dcd960a84160f}


删除文件 


\begin{DoxyParams}{参数}
{\em Path} & 路径\\
\hline
\end{DoxyParams}
\index{Tools::FileHelper@{Tools::FileHelper}!FileMove@{FileMove}}
\index{FileMove@{FileMove}!Tools::FileHelper@{Tools::FileHelper}}
\subsubsection[{FileMove}]{\setlength{\rightskip}{0pt plus 5cm}static void Tools.FileHelper.FileMove (
\begin{DoxyParamCaption}
\item[{string}]{ orignFile, }
\item[{string}]{ NewFile}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_file_helper_a2569182dbe2bfd1113342f90fd4c265b}


移动文件 


\begin{DoxyParams}{参数}
{\em OrignFile} & 原始路径\\
\hline
{\em NewFile} & 新路径\\
\hline
\end{DoxyParams}
\index{Tools::FileHelper@{Tools::FileHelper}!FolderCreate@{FolderCreate}}
\index{FolderCreate@{FolderCreate}!Tools::FileHelper@{Tools::FileHelper}}
\subsubsection[{FolderCreate}]{\setlength{\rightskip}{0pt plus 5cm}static void Tools.FileHelper.FolderCreate (
\begin{DoxyParamCaption}
\item[{string}]{ orignFolder, }
\item[{string}]{ NewFloder}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_file_helper_a667ef09d392179e4e30cb2007de2fe8a}


在当前目录下创建目录 


\begin{DoxyParams}{参数}
{\em OrignFolder} & 当前目录\\
\hline
{\em NewFloder} & 新目录\\
\hline
\end{DoxyParams}
\index{Tools::FileHelper@{Tools::FileHelper}!GetPostfixStr@{GetPostfixStr}}
\index{GetPostfixStr@{GetPostfixStr}!Tools::FileHelper@{Tools::FileHelper}}
\subsubsection[{GetPostfixStr}]{\setlength{\rightskip}{0pt plus 5cm}static string Tools.FileHelper.GetPostfixStr (
\begin{DoxyParamCaption}
\item[{string}]{ filename}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_file_helper_a5b5f917002a7cf14bc1d39ba744126f3}


取后缀名 


\begin{DoxyParams}{参数}
{\em filename} & 文件名\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
.gif$|$.html格式
\end{DoxyReturn}
\index{Tools::FileHelper@{Tools::FileHelper}!ReadFile@{ReadFile}}
\index{ReadFile@{ReadFile}!Tools::FileHelper@{Tools::FileHelper}}
\subsubsection[{ReadFile}]{\setlength{\rightskip}{0pt plus 5cm}static string Tools.FileHelper.ReadFile (
\begin{DoxyParamCaption}
\item[{string}]{ Path}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_file_helper_ae46d8217254deac16d6dbd1251e9d7b0}


读文件 


\begin{DoxyParams}{参数}
{\em Path} & 文件路径\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\index{Tools::FileHelper@{Tools::FileHelper}!WriteFile@{WriteFile}}
\index{WriteFile@{WriteFile}!Tools::FileHelper@{Tools::FileHelper}}
\subsubsection[{WriteFile}]{\setlength{\rightskip}{0pt plus 5cm}static void Tools.FileHelper.WriteFile (
\begin{DoxyParamCaption}
\item[{string}]{ Path, }
\item[{string}]{ Strings}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_file_helper_ad4d060ad109e993f33f58659ab206e09}


写文件 


\begin{DoxyParams}{参数}
{\em Path} & 文件路径\\
\hline
{\em Strings} & 文件内容\\
\hline
\end{DoxyParams}


该类的文档由以下文件生成：\begin{DoxyCompactItemize}
\item 
D:/Project/1101/Tools/FileHelper.cs\end{DoxyCompactItemize}
